
package com.j2eefast.flowable.bpm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.j2eefast.flowable.bpm.entity.ProjectClaimEntity;
import com.j2eefast.flowable.bpm.entity.ProjectClaimRecordEntity;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p></p>
 *
 * @author: zhangyuan
 * @date: 2021-04-29 23:47
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */

public interface ClaimMapper extends BaseMapper<ProjectClaimEntity> {
	//更新认领记录
	int updateRecord(@Param("recordList")List<ProjectClaimRecordEntity> recordList);
	//认领管理信息
	ProjectClaimEntity getByIds(Long id);
	//更新认领管理信息
	int updateByIds(ProjectClaimEntity projectClaimEntity);
	//保存认领管理信息
	int save(ProjectClaimEntity projectClaimEntity);
	//保存认领记录信息
	boolean saveRecord(@Param("recordList")List<ProjectClaimRecordEntity> recordList);
	//查询认领记录列表信息
	public List<ProjectClaimRecordEntity> recordList(@Param("userId")Long userId,@Param("id")Long id);
	//查询认领记录信息
	public ProjectClaimRecordEntity recordInfo(@Param("id")Long id);

//	public List<SysUserEntity> getSysById(@Param("ceoList")List<ProjectClaimRecordEntity> ceoList);
	//查询用户信息
	public SysUserEntity getSysById(@Param("ceoName")Long ceoName);
	//删除认领记录信息
	public boolean deleteRecord(@Param("id")Long id);
	//删除认领管理信息
	public boolean deleteClaim(@Param("ids")Long[] ids);
	/**
	 * 页面分页数据
	 * @param params
	 * @param sql_filter
	 * @return
	 */
	Page<ProjectClaimEntity> findPage(IPage<?> params,
									  			@Param("beginTime") String beginTime,
                                              @Param("endTime") String endTime,
									  		  @Param("arrivalAmount1") String arrivalAmount1,
									  		  @Param("arrivalAmount2") String arrivalAmount2,
									  			@Param("remittanceUnit") String remittanceUnit,
                                              @Param("sql_filter") String sql_filter);



}

